
package object;

/**
 * 
 * @author wangweida
 * 2009-12-3
 */

public class User{
	private int UserID;
	private String UserName;
	private String RealName;
	private String Password;
	private String Email;
	private int UserLevel;
	private int AddedByID;
	private String AddDate;
	private int LastEditedByID;
	private String LastDate;
	private byte IsDropped;
	
	private User(){
		
	}
	private User(int UserID,String UserName,String RealName,String Password,String Email,int UserLevel,int AddedByID,String AddDate,int LastEditedByID,String LastDate,byte IsDropped){
		this.UserID=UserID;
		this.UserName=UserName;
		this.RealName=RealName;
	    this.Password=Password;
	    this.Email=Email;
	    this.UserLevel=UserLevel;
	    this.AddDate=AddDate;
	    this.AddedByID=AddedByID;
	    this.LastDate=LastDate;
	    this.LastEditedByID=LastEditedByID;
	    this.IsDropped=IsDropped;
	}
	
	public static User getInstance(){
		return new User();
	}
	public static User getInstance(int UserID,String UserName,String RealName,String Password,String Email,int UserLevel,int AddedByID,String AddDate,int LastEditedByID,String LastDate,byte IsDropped){
		return new User(UserID,UserName,RealName,Password,Email,UserLevel,AddedByID,AddDate,LastEditedByID,LastDate,IsDropped);
	}
	
	public void setUserID(int UserID){
		this.UserID=UserID;
	}
	public int getUserID(){
		return this.UserID;
	}
	
	public void setUserName(String UserName){
		this.UserName=UserName;
	}
	public String getUserName(){
		return this.UserName;
	}
	
	public void setRealName(String RealName){
		this.RealName=RealName;
	}
	public String getRealName(){
		return this.RealName;
	}
	
	public void setPassword(String Password){
		this.Password=Password;
	}
	public String getPassword(){
		return this.Password;
	}
	
	public void setUserLevel(int  level){
		this.UserLevel=level;
	}
	public int getUserLevel(){
		return this.UserLevel;
	}
	
	public void setEmail(String Email){
		this.Email=Email;
	}
	public String getEmail(){
		return this.Email;
	}
	
	public void setAddDate(String AddDate){
		this.AddDate=AddDate;
	}
	public String getAddDate(){
		return this.AddDate;
	}
	
	public void setLastDate(String LastDate){
		this.LastDate=LastDate;
	}
	public String getLastDate(){
		return this.LastDate;
	}
	public void setAddedByID(int AddedByID){
		this.AddedByID=AddedByID;
	}
	public int getAddedByID(){
		return this.AddedByID;
	}
	public void setLastEditedByID(int LastEditedByID){
		this.LastEditedByID=LastEditedByID;
	}
	public int getLastEditedByID(){
		return this.LastEditedByID;
	}
	
	public void setIsDropped(byte IsDropped){
		this.IsDropped=IsDropped;
	}
	public byte getIsDropped(){
		return this.IsDropped;
	}
}